package singleton.hungry;

/**
 * @author Feng
 * @date 2019/3/10 13:55
 */
public class HungryStaticSingleton {

    private static HungryStaticSingleton hungryStaticSingleton = null;

    static {
        hungryStaticSingleton = new HungryStaticSingleton();
    }

    private HungryStaticSingleton(){}

    public static HungryStaticSingleton getInstance(){
        System.out.println(hungryStaticSingleton);
        return  hungryStaticSingleton;
    }
}
